import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import login from '@/pages/login/login'
import registStep1 from '@/pages/regist/registStep1'
import registStep2 from '@/pages/regist/registStep2'
import registStep3 from '@/pages/regist/registStep3'
// import forgetStep1 from '@/pages/forget/forgetStep1'
// import forgetStep2 from '@/pages/forget/forgetStep2'
// import forgetStep3 from '@/pages/forget/forgetStep3'
import home from '@/pages/home/home'
import recent from '@/pages/home/children/recent'
import checkTrain from '@/pages/home/children/checkTrain'
import trainDetail from '@/pages/home/children/trainDetail'
import addTrain from '@/pages/home/children/addTrain'
import userNews from '@/pages/home/children/userNews'
import systemNews from '@/pages/home/children/systemNews'
import newsBack from '@/pages/home/children/newsBack'
import test from '@/pages/test'
import title from '@/pages/title/title'
// import login from '@/pages/title/child/login'
import rgs1 from '@/pages/title/child/registStep1'
import rgs2 from '@/pages/title/child/registStep2'
import rgs3 from '@/pages/title/child/registStep3'
import forgetStep1 from '@/pages/title/child/forgetStep1'
import forgetStep2 from '@/pages/title/child/forgetStep2'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/test',
      component: test
    },
    {
      path: '/step',
      component: title,
      children: [
        // {
        //   path: '/login',
        //   component: login
        // },
        {
          path: '/registStep1',
          component: rgs1
        }, 
        {
          path: '/registStep2',
          component: rgs2
        }, 
        {
          path: '/registStep3',
          component: rgs3
        },
        {
          path: '/forgetStep1',
          component: forgetStep1
        }, {
          path: '/forgetStep2',
          component: forgetStep2
        }
      ]
    },
    {
      path:'/',
      component:login
    },
    // {
    //   path:'/registStep1',
    //   component:registStep1
    // },
    // {
    //   path:'/registStep2',
    //   component:registStep2
    // },
    // {
    //   path:'/registStep3',
    //   component:registStep3
    // },
    // {
    //   path:'/forgetStep1',
    //   component:forgetStep1
    // },
    // {
    //   path:'/forgetStep2',
    //   component:forgetStep2
    // },
    // {
    //   path:'/forgetStep3',
    //   component:forgetStep3
    // },
    {
      path: '/home',
      component: home,
      children: [
        {
          path: 'recent',
          component: recent
        },
        {
          path: 'checkTrain',
          component: checkTrain
        },
        {
          path: 'trainDetail',
          component: trainDetail
        },
        {
          path: 'addTrain',
          component: addTrain
        },
        {
          path: 'userNews',
          component: userNews
        },
        {
          path: 'systemNews',
          component: systemNews
        },
        {
          path: 'newsBack',
          component: newsBack
        },
        // {
        //   path:'addTrainStep1',
        //   component:addTrainStep1
        // }
      ]
    },
  ]
})
